<?php
namespace app\admin\model;

use think\Model;

class Page extends Model
{
    protected $schema = [
        'id' => 'int',
        'name' => 'string',
        'proplan_id' => 'int',
        'start_time' => 'datetime',
        'end_time' => 'datetime',
        'path' => 'string',
        'switch' => 'int',
        'wechat' => 'string',
        'description' => 'string',
    ];

    public function proplan()
    {
        return $this->belongsTo(Proplan::class);
    }

}
